package com.zsrt.java.day20170103.lh.daily.demo03;


import org.junit.Test;


/**
 * 1。用父类来申明一个变量   多态 方法的调用一样，结果不一样
 * 2.new 具体的子类
 * @author My
 *
 */
public class StudentTest {
	
	  @Test
	public void testName() throws Exception {
		  
		 Student st=new Liu();
		  st.setAge(18);
		  st.setName("刘浩");
		  st.lutuzhiwen();
		  
		  
		  
		  
	
		  /*Student st1=new Student(){

			@Override
			public void lutuzhiwen() {
				
				System.out.println("xx的指纹");
			}
			  
		  };*/
		  
		 
		  
		  
  	}		
	

}
